home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: news.eunet.fi!nullnet!tna!marcus.alanen
- From: marcus.alanen@tna.nullnet.fi (Marcus Alanen)
- Subject: Re: Help with transparent obj
- Message-ID: <64_5736@tna.nullnet.fi>
- References: <4l13tn$u@ns.ccsn.edu>
- Organization: The New Age BBBS
- Sender: news@tna.nullnet.fi (News Administrator)
- Date: 19 Apr 1996 20:05:06 +0200
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
-
- > I have been trying to write a function in C that will paste a
- > pre-defined block down onto the screen with color 0 (or a certain area)
- > being transparent (kinda like how BOBS work)
-
- Uh... graphics.library/BltMaskBitMapRastPort with a minterm
- of (I think) #$C0, which means a normal blit. Then, in register a2,
- you must pass the address of the mask. The first word in the mask will be
- used for all bitplanes in the source bitmap and then pasted onto
- the destination bitmap, the next word (*not* the word under the first
- one!) will be used for line 2 etc.
- I think it was like this... ;) Anyway, your "mask" memory should
- consist of one plane with it's mask words from left to right,
- not from up to down, otherwise it'll use the wrong mask.
- If anybody has a better way of explaining this mask thingy then
- please write! I have myself some problems...
-
- > suggestions or help would be EXTREMELY appreciated -- this problem has
- > haunted me for almost a year. Thanks a meg in advance...
-
- And now you ask for help? Gee, that *is* some pride... :)
-
- Marcus Alanen
- marcus.alanen@tna.nullnet.fi
-